import * as actionTypes from './actionTypes'
import { fromJS } from 'immutable'
const defaultState = fromJS({
    focused: false,
    list: []
})
export default (state = defaultState, action) => {
    switch (action.type) {
        case actionTypes.INPUT_FOCUS:
            return state.set('focused',true);
        case actionTypes.INPUT_BLUR:
            return state.set('focused',false);
        case actionTypes.INPUT_BLUR:
            return state.set('focused',false);
        case actionTypes.GET_SERCH_LIST:
            return state.set('list',action.data);
        default:
            return state
    }
    if( === actionTypes.INPUT_FOCUS){
        
    }
    if(action.type === ){
        
    }
    if(action.type === ){
        
    }
    if(action.type === ){
        console.log(action.data)
        
    }
   
}